<?xml version="1.0" encoding="UTF-8"?>    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/WEB-INF/templates/platTemplate.xhtml">
	<ui:define name="content">
		<script type="text/javascript">
			function executeClickEvent(id){
				alert(id);
			}
		</script>
		<script type="text/javascript" src="${facesContext.externalContext.requestContextPath}/resources/javascript/dtree.js"/>
		<script type="text/javascript" src="${facesContext.externalContext.requestContextPath}/resources/javascript/thickbox.js"/>
		<link type="text/css" rel="stylesheet" href="${facesContext.externalContext.requestContextPath}/resources/css/dtree.css"></link>
		<link type="text/css" rel="stylesheet" href="${facesContext.externalContext.requestContextPath}/resources/css/thickbox.css"></link>
		<div class="resource_panel">
			<div class="resource-left">
				<rich:panel styleClass="rf-p-none-border rf-p-resource" headerClass="rf-p-hdr-none-border" bodyClass="rf-p-bnone-border">
	                <h:outputText value="#{userAccessPanelMenu.rTree.allResource}" escape="false"></h:outputText>
	            </rich:panel>
			</div>
			<div class="resource-right-content">
				<div class="resource_right">
		            <rich:panel styleClass="rf-p-tree" headerClass="rf-p-hdr-tree" bodyClass="rf-p-b-tree">
		                <f:facet name="header" >
		                    For Component Developers
		                </f:facet>
		                    <ul>
		                    	<a onclick="showThickBox('修改会员用户','./subpage/selectResource.xhtml?TB_iframe=true%26height=550%26width=750',false,'')">click me</a>
		                    </ul>
		                    <h:commandButton value="Call the popup">
						        <rich:componentControl target="popup" operation="show" />
						    </h:commandButton>
						    <rich:popupPanel id="popup" modal="true" resizeable="true" onmaskclick="#{rich:component('popup')}.hide()">
						        <f:facet name="header">
						            <h:outputText value="Simple popup panel" />
						        </f:facet>
						        <f:facet name="controls">
						            <h:outputLink value="#" onclick="#{rich:component('popup')}.hide(); return false;">
						                关闭
						            </h:outputLink>
						        </f:facet>
						        <p>You can also check and trigger events if the use clicks outside of the panel.</p>
						 
						        <p>In this example clicking outside closes the panel.</p>
						    </rich:popupPanel>
		            </rich:panel>
	            </div>
            </div>
           	<div class="clear"></div>
        </div>
	</ui:define>
</ui:composition>
</html>

